Skip to content

docs: add AsyncLLMBaseExtension and AsyncLLMToolBaseExtension dev guide#2154

Open
nuthalapativarun wants to merge 1 commit into
TEN-framework:mainfrom
nuthalapativarun:docs/asyncllm-dev-guide-514
Open

docs: add AsyncLLMBaseExtension and AsyncLLMToolBaseExtension dev guide#2154
nuthalapativarun wants to merge 1 commit into
TEN-framework:mainfrom
nuthalapativarun:docs/asyncllm-dev-guide-514

Conversation

@nuthalapativarun
Copy link
Copy Markdown

Summary

  • Add an "LLM Extension Development" section to docs/development/how_to_develop_with_ext.md
  • Covers AsyncLLMBaseExtension with a complete annotated example: on_start, on_stop, on_data_chat_completion (streaming tokens), on_call_chat_completion (synchronous), and on_tools_update
  • Covers AsyncLLMToolBaseExtension with a WebSearchToolExtension example showing get_tool_metadata, run_tool, both LLMToolResult types (llmresult and requery), and graph wiring for tool registration/dispatch
  • Explains key behaviors: send_text_output end-of-segment signalling, available_tools, flush/cancellation, base class super() requirements
  • Reference table linking to real in-repo implementations (grok_python, openai_llm2_python, bingsearch_tool_python)

Test plan

  • All code examples verified against actual source in grok_python, openai_llm2_python, and bingsearch_tool_python
  • Graph connection JSON matches the pattern used in existing voice-assistant property.json files
  • task format — clean (documentation only)

Related Issues

Fixes #514

Add an LLM Extension Development section to how_to_develop_with_ext.md
with annotated code examples for both base classes. Covers the three
required method overrides, send_text_output usage, tool metadata
registration, run_tool dispatch, LLMToolResult types, and graph wiring.
Includes a reference table of real in-repo implementations. Addresses TEN-framework#514.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Extension development documentation

1 participant